package com.lhy.login;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class LoginApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(LoginApplication.class, args);
        String username = configurableApplicationContext.getEnvironment().getProperty("user.name");
        System.out.println(username);
    }

}
